package com.yulinlin.core;

import com.yulinlin.core.wrapper.ISqlWrapper;
import com.yulinlin.jdbc.serialize.impl.ITypeSerialize;

import java.util.List;

public interface ISqlTemplate {

    //注册一个类型拦截器
     void registerTypeSerialize(ITypeSerialize serialize);

     //批量注册
     void registerTypeSerialize(List<ITypeSerialize> serializes);

     //执行修改
     int execute(ISqlWrapper jw) ;

     //执行查询
     <E> List<E> select(ISqlWrapper jw, Class<E> clazz) ;

}
